package com.zhuifeng.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuifeng.common.core.annotation.Excel;
import com.zhuifeng.common.core.web.domain.BaseEntity;

/**
 * 商品规格对象 product_rule
 *
 * @author zhuifeng
 * @date 2022-08-18
 */
public class ProductRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String productRuleId;

    /** 类型id */
    private String typeId;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typeName;

    /** 规格详情 */
    @Excel(name = "规格详情")
    private String rultAttr;

    /** 规格状态 */
    @Excel(name = "规格状态")
    private String status;

    /** 乐观锁 */
    private Long revision;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    private Date createdTime;

    public void setProductRuleId(String productRuleId)
    {
        this.productRuleId = productRuleId;
    }

    public String getProductRuleId()
    {
        return productRuleId;
    }

    public String getRultAttr()
    {
        return rultAttr;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setRevision(Long revision)
    {
        this.revision = revision;
    }

    public Long getRevision()
    {
        return revision;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productRuleId", getProductRuleId())
            .append("rultAttr", getRultAttr())
            .append("status", getStatus())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
